<template>
<!-- 这是设计师 -->
  <div id="details">
    <div class="projectCases">
      <ul>
        <li @click="Jump('designer1')"><p :class=" classId == 'designer1' ? 'bottomBorder' : ''">Cultural architecture</p><span>工装</span></li>
        <li @click="Jump('designer2')"><p :class=" classId == 'designer2' ? 'bottomBorder' : ''">household decorate</p><span>家装</span></li>
      </ul>
    </div>
    <graphicCase :caseValue='caseData'></graphicCase>
    <!-- <h2>这是项目详情</h2> -->
  </div>
</template>

<script>
import graphicCase from "../../../components/graphicCase";
export default {
  data () {
    return {
      caseData: 'designer0', //项目标识
      classId: '',  //添加类名
    }
  },
  components: {
    graphicCase,
  },
  methods: {
    Jump(sdate) {
      this.caseData = sdate;
      this.classId = sdate;
    }
  }
}
</script>

<style lang="less" scoped>
.projectCases {
  font-size: 14px;
  margin-top: 20px;
  // color: #666;
  ul {
    // height: 230px;
    padding-bottom: 55px;
    li {
      display: inline-block;
      line-height: 22px;
      margin-right: 48px;
      margin-top: 12px;
      color: #666;
    }
    li:nth-child(1) {
      left: 0px;
      top: 0px;
    }
    li:nth-child(2) {
      left: 170px;
      top: 24px;
    }
    li:nth-child(3) {
      left: 30px;
      top: 70px;
    }
    li:nth-child(4) {
      left: 180px;
      top: 90px;
    }
    li:nth-child(5) {
      left: 70px;
      top: 150px;
    }
    p {
      border-bottom: 1px solid transparent;
    }
  }
}
.bottomBorder {
  border-bottom: 1px solid #666 !important;
  color: black !important;
}
</style>